package com.lebang.feign.fallback;

import com.lebang.feign.JokeEarnedFeign;
import com.lebang.model.RequestUserInfo;
import com.lebang.model.back.Result;
import com.lebangweb.response.JsonData;
import org.springframework.stereotype.Component;

import static com.lebang.feign.draw.CommonFallBack.FAIL_JSON;
import static com.lebang.feign.draw.CommonFallBack.FAIL_RESULT;

/**
 * @author xuweijie
 */
@Component
public class JokeEarnedFallback implements JokeEarnedFeign {
    @Override
    public JsonData enable(RequestUserInfo request, String key) {
        return FAIL_JSON;
    }

    @Override
    public JsonData list(RequestUserInfo request, String key) {
        return FAIL_JSON;
    }

    @Override
    public JsonData pull(RequestUserInfo request) {
        return FAIL_JSON;
    }

    @Override
    public Result<Integer> push(RequestUserInfo request, Long id) {
        return FAIL_RESULT;
    }

    @Override
    public Result<Integer> doubleCount(RequestUserInfo request, Long id) {
        return FAIL_RESULT;
    }

    @Override
    public Result<Integer> total(RequestUserInfo request) {
        return FAIL_RESULT;
    }
}
